#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
char* sovel(char* ch1, char* ch2)
{
	int ste1 = strlen(ch1);
	int ste2 = strlen(ch2);
	int max_1 = ste1 > ste2 ? ste1 + 1 : ste2 + 1;
	char* pc =(char*)calloc(max_1, sizeof(char));
	int j = 0;
	int k = 0;
	int i = 0;
	int temp = 0;
	for (j = ste1 - 1, k = ste2 - 1, i = max_1 - 1; k >= 0; j--, k--, i--)
	{
		int mch2 = 0;
		int mch1 = 0;
		if (j >= 0)
		{
			
			mch1 = ch1[j] - '0';
		}
		if (k >= 0)
		{
			
			mch2 = ch2[k] - '0';
		}
		temp = temp + mch2 + mch1;
		pc[k] = temp % 10 + '0';
		temp = temp / 10;
	}
	if (*pc == '0')
	{
		return ++pc;
	}
	return pc;


}
int main()
{
	char ch1[100]= "0";
	char ch2[100] = "0";
	scanf("%s %s", ch1,ch2);
	char* ret = sovel(ch1, ch2);
	printf("%s", ret);

	return 0;
}